package org.aj.common.web.file.bean;

/**
 * @autor aj
 * description 压缩属性
 * date  2022/1/216:20
 */
public class CompressProperty {

    /**
     * 压缩的阈值，单位为字节
     */
    private Long compressThreshold;

    /**
     * 压缩后的大小单位为字节
     */
    private Long compressAfterSize;

    /**
     * 压缩后的像素 ,若以此像素压缩后还是未达到压缩后的大小则会
     * 吧此像素缩小一倍 在进行压缩直到<= compressAfterSize
     */
    private Integer compressAfterMaxPixel=1024;

    /**
     * 指定压缩后的后缀 默认为源文件后缀
     */
    private String compressAfterSuffix;

    public Long getCompressThreshold() {
        return compressThreshold;
    }

    public void setCompressThreshold(Long compressThreshold) {
        this.compressThreshold = compressThreshold;
    }

    public Long getCompressAfterSize() {
        return compressAfterSize;
    }

    public void setCompressAfterSize(Long compressAfterSize) {
        this.compressAfterSize = compressAfterSize;
    }

    public Integer getCompressAfterMaxPixel() {
        return compressAfterMaxPixel;
    }

    public void setCompressAfterMaxPixel(Integer compressAfterMaxPixel) {
        this.compressAfterMaxPixel = compressAfterMaxPixel;
    }

    public String getCompressAfterSuffix() {
        return compressAfterSuffix;
    }

    public void setCompressAfterSuffix(String compressAfterSuffix) {
        this.compressAfterSuffix = compressAfterSuffix;
    }
}
